var express = require('express');
var MerchantService = require('../server/service/merchant.service');

var router = express.Router();

router.post('/', function (req, res, next) {
    MerchantService.register(
        req.body.merchantName,
        req.body.password,
        req.body.address,
        req.body.headPic,
        req.body.idCardPic,
        function (doc) {
            res.send(doc);
        }
    );
});

module.exports = router;
